{{- return (partial "docs/text/template" (dict "Template" .Site.Params.BookEditLink "Context" (dict
  "Site" .Site
  "Page" .Page
  "Path" (strings.TrimPrefix hugo.WorkingDir .Page.File.Filename)
)) | urls.JoinPath) -}}